<template>
  <div style="background-color: #f3f5f7;height: 100vh;" >
    
             <u-navbar :is-back="true"  :custom-back='BackM' title="超时订单" back-text='' >
         <view class="slot-right" style="width: 100%;display: flex;justify-content: flex-end;" >
			</view>
         </u-navbar>


 <div
        class="totle-price"
        style="
          font-size: 0.72rem;
          padding: 0.5rem;
          font-family: PingFang SC;
          font-weight: 300;
          color: #666666;
          display: flex;
          justify-content: center;
        "
      >
        本人订单数:30个
      </div>

        <div style="background-color: #f3f5f7;
padding: 1rem;" class="repairListsP">
        
          <div  class="repairLists"  v-for="(item,index) in repairLists" :key="index" >
                        <div class="repairLists-child"  >

                        <div class="repairLists-top">
                                <div style="display: flex;
align-items: center;">
                                    <img style="width: 1rem;
margin-right: 0.3rem;" src="../../style/image/order/charge.png" alt="">
                                    <div> <span style="font-size: 0.72rem;
font-family: PingFang SC;
font-weight: 300;
color: #02AF74;" >(UC8000)</span> 订单编号：<span style="font-size: 0.72rem;
font-family: PingFang SC;
font-weight: 300;">876767676</span></div>
                                </div>

                                <div>租借中</div>
                        </div>

                            <div class="repairLists-head">
              <div
                style="
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  margin: 0.2rem 0rem;
                "
              >
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  商户名称
                </div>
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  拉卡拉总代理
                </div>
              </div>
              <div
                style="
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  margin: 0.2rem 0rem;
                "
              >
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  充电宝SN码
                </div>
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  12345678
                </div>
              </div>
              <div
                style="
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  margin: 0.2rem 0rem;
                "
              >
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  底座SN码
                </div>
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  12345678
                </div>
              </div>
              <div
                style="
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  margin: 0.2rem 0rem;
                "
              >
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  租借时间
                </div>
                <div
                  style="
                    font-size: 0.72rem;
                    font-family: PingFang SC;
                    font-weight: 300;
                    color: #333333;
                  "
                >
                  2020.09.03 11:09:29
                </div>
              </div>
            </div>
                        </div>


                        <div :style="{ display: 'flex',justifyContent: 'center',padding: '0.5rem'}">
                            <div class="repairBtn" >维修完成</div>
                        </div>
            </div>
        </div>



  </div>
</template>

<script lang='ts' >
import { Component, Prop, Vue, Watch, Emit } from "vue-property-decorator";

@Component({
  //   @Component  是一个装修器   不可以在下面写语句
  name: "test",
})
export default class extends Vue {
  @Prop({
    type: String, // 父组件传递给子组件的数据类型
    required: false, // 是否必填
    default: " ", // 默认值， 如果传入的是 Object，则要 default: ()=>({}) 参数为函数
  })
  msg!: string;

  public selectIfy: any = 1;
  public value1 = 1;
  public value2 = 2;
  public options1 = [
    {
      label: "默认排序",
      value: 1,
    },
    {
      label: "距离优先",
      value: 2,
    },
    {
      label: "价格优先",
      value: 3,
    },
  ];
  public options2 = [
    {
      label: "去冰",
      value: 1,
    },
    {
      label: "加冰",
      value: 2,
    },
  ];

    public repairLists=[
        {
            mainTitle:'拉卡拉总代理',

        },
        {
            mainTitle:'拉卡拉总代理',

        },
          {
            mainTitle:'拉卡拉总代理',

        }
       ]
   

  created() {}

  mounted() {
    //  console.log('父组件传递的参数:',this.$parent)   //暂时不考虑
  }

   busM() {
    //方法中获取this
    this.selectIfy = 2;
  }
}
</script>

<style  scoped>
.searchPP {
  background-color: white;
  padding: 0.5rem;

  display: flex;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
}
.searchP {
  background-color: white;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.repairLists-top{
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0.5rem;
border-bottom: 1px solid #e8e8e8;

}

.classesifyP {
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 1rem;
  background-color: white;
}

.classesify {
  width: 4rem;
  height: 1.5rem;
  border: 1px solid #02af74;

  display: flex;
  align-items: center;
  border-radius: 10px;
  /* //   background-color: red; */
}

.classesify-puc {
  width: 50%;
  font-size: 0.6rem;
  border-bottom-left-radius: 8px;
  border-top-left-radius: 8px;
  height: 100%;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #02af74;
}
.classesify-pucs {
  width: 50%;
  font-size: 0.6rem;
  border-bottom-left-radius: 8px;
  border-top-left-radius: 8px;
  height: 100%;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.classesify-bus {
  width: 50%;
  font-size: 0.6rem;
}
.classesify-buss {
  width: 50%;
  font-size: 0.6rem;
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
  height: 100%;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #02af74;
}

.totle-price{
     display: flex;
     justify-content: space-between;
     align-items: center;
     background-color: #f3f5f7;
     padding: 0.2rem 0.5rem;
}
.totle-price-text{

font-size: 0.73rem;
font-family: PingFang SC;
font-weight: 400;
color: #000000;
}
.totle-price-text span{

font-size: 0.73rem;
font-family: PingFang SC;
font-weight: 300;
color: #000000;
}


.repairLists{

 background-color: white;
 margin-bottom: 1rem;
 border-radius: 0.2rem;
 /* padding: 1rem; */
 /* margin: 1rem; */
 
 }
 
 .repairLists-child{
 
  border-bottom: 1px solid #E5E5E5;
 }
.repairLists-head{
   padding: 1rem;
}

.repairBtn{
width: 4.5rem;
height: 1.5rem;
background: #FFFFFF;
border: 1px solid #02AF74;
border-radius: 0.3rem;
font-size: 0.78rem;
font-family: PingFang SC;
font-weight: 300;
color: #02B074;
text-align: center;
align-items: center;
line-height: 1.5rem;

}
</style>